home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 8
/
The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO
/
pcboard
/
tickle16.zip
/
REPORT.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1996-10-04
|
6KB
|
244 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 3.1O (Encryption type I) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Real REAL001
Real REAL002
Real REAL003
Real REAL004
Real REAL005
String TSTRING001(49)
String STRING002
Int INT001
Int INT002
;------------------------------------------------------------------------------
Gosub LABEL001
If (DErr(0)) Then
Newline
PrintLn "Cannot open TICKLE.DBF (DataBase) - Aborting"
Newline
Log "Cannot open TICKLE.DBF (DataBase) - Aborting", 0
Wait
End
Endif
StartDisp 1
FAppend 1, PPEPath() + "TKLREPRT.LOG", 2, 0
FPutLn 1, "───────────────────────────────────────────────────-"
FPutLn 1, "REPORT.PPE - A 'Tickle File' Database Report Program"
FPutLn 1, ""
FPutLn 1, " Written by: Dan Shore - SysOp"
FPutLn 1, " The Shoreline BBS"
FPutLn 1, ""
FPutLn 1, " Copyright 1995,1996 (c) - Dan Shore"
FPutLn 1, ""
INTEGER002 = DRecCount(0)
While (INTEGER001 < INTEGER002) Do
Inc INTEGER001
DGo 0, INTEGER001
If (DErr(0)) Break
STRING002 = DGet(0, DName(0, 1))
STRING002 = Trim(STRING002, " ")
STRING002 = Mixed(STRING002)
PrintLn "Processing UserName: ", STRING002
Inc REAL002
INT002 = 0
FPutLn 1, "──────────────────────────────────────────────────────────────────────"
FPut 1, STRING002 + " has "
STRING002 = DGet(0, DName(0, 2))
If (DDeleted(0)) Then
FPutLn 1, "-* been flagged for Deletion *- "
Inc REAL005
Continue
ElseIf (DGet(0, DName(0, 2)) == " ") Then
FPutLn 1, "-* NO FILES *- in their database"
Inc REAL005
Continue
Else
FPutLn 1, "these files in their database:"
FPutLn 1, ""
Inc REAL004
Endif
For INT001 = 2 To 25
If (DGet(0, DName(0, INT001)) == " ") Then
FPutLn 1, ""
FPutLn 1, ""
Break
Endif
Inc REAL003
Inc INT002
STRING002 = Space(2 - Len(String(INT001 - 1))) + String(INT001 - 1) + ". " + DGet(0, DName(0, INT001)) + Space(2)
FPut 1, STRING002
STRING002 = Lower(DGet(0, DName(0, INT001 + 24)))
FPut 1, STRING002 + Space(1)
If (INT002 % 2 == 0) Then
FPutLn 1, ""
INT002 = 0
Endif
Next
EndWhile
FPutLn 1, "──────────────────────────────────────────────────────────────────────"
FPutLn 1, ""
FPutLn 1, ""
FPutLn 1, " ************************************************************"
FPutLn 1, ""
FPutLn 1, " 'Tickle File' Statistics Summary Report"
FPutLn 1, ""
FPutLn 1, ""
FPutLn 1, " Total Users in Database : " + String(REAL002)
FPutLn 1, " Total Files in Database : " + String(REAL003)
FPutLn 1, " Total Users with Files in Database : " + String(REAL004)
FPutLn 1, " Total Users without Files in Database : " + String(REAL005)
REAL001 = REAL003 / REAL004
FPutLn 1, " Files Per User with Files in Database : " + String(REAL001)
FPutLn 1, ""
FPutLn 1, " ************************************************************"
FClose 1
StartDisp 2
End
:LABEL001
If (Exist(PPEPath() + "tickle.dbf")) Goto LABEL002
TSTRING001(0) = "usr_name,C,25,0"
TSTRING001(1) = "file1,C,12,0"
TSTRING001(2) = "file2,C,12,0"
TSTRING001(3) = "file3,C,12,0"
TSTRING001(4) = "file4,C,12,0"
TSTRING001(5) = "file5,C,12,0"
TSTRING001(6) = "file6,C,12,0"
TSTRING001(7) = "file7,C,12,0"
TSTRING001(8) = "file8,C,12,0"
TSTRING001(9) = "file9,C,12,0"
TSTRING001(10) = "file10,C,12,0"
TSTRING001(11) = "file11,C,12,0"
TSTRING001(12) = "file12,C,12,0"
TSTRING001(13) = "file13,C,12,0"
TSTRING001(14) = "file14,C,12,0"
TSTRING001(15) = "file15,C,12,0"
TSTRING001(16) = "file16,C,12,0"
TSTRING001(17) = "file17,C,12,0"
TSTRING001(18) = "file18,C,12,0"
TSTRING001(19) = "file19,C,12,0"
TSTRING001(20) = "file20,C,12,0"
TSTRING001(21) = "file21,C,12,0"
TSTRING001(22) = "file22,C,12,0"
TSTRING001(23) = "file23,C,12,0"
TSTRING001(24) = "file24,C,12,0"
TSTRING001(25) = "desc1,C,15,0"
TSTRING001(26) = "desc2,C,15,0"
TSTRING001(27) = "desc3,C,15,0"
TSTRING001(28) = "desc4,C,15,0"
TSTRING001(29) = "desc5,C,15,0"
TSTRING001(30) = "desc6,C,15,0"
TSTRING001(31) = "desc7,C,15,0"
TSTRING001(32) = "desc8,C,15,0"
TSTRING001(33) = "desc9,C,15,0"
TSTRING001(34) = "desc10,C,15,0"
TSTRING001(35) = "desc11,C,15,0"
TSTRING001(36) = "desc12,C,15,0"
TSTRING001(37) = "desc13,C,15,0"
TSTRING001(38) = "desc14,C,15,0"
TSTRING001(39) = "desc15,C,15,0"
TSTRING001(40) = "desc16,C,15,0"
TSTRING001(41) = "desc17,C,15,0"
TSTRING001(42) = "desc18,C,15,0"
TSTRING001(43) = "desc19,C,15,0"
TSTRING001(44) = "desc20,C,15,0"
TSTRING001(45) = "desc21,C,15,0"
TSTRING001(46) = "desc22,C,15,0"
TSTRING001(47) = "desc23,C,15,0"
TSTRING001(48) = "desc24,C,15,0"
DCreate 0, PPEPath() + "tickle", 0, TSTRING001(BOOLEAN000)
Goto LABEL003
:LABEL002
DOpen 0, PPEPath() + "tickle", 0
:LABEL003
Return
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 2 End
; 1 Wait
; 17 Goto
; 61 Let
; 2 PrintLn
; 9 If
; 1 FAppend
; 1 FClose
; 3 FPut
; 31 FPutLn
; 2 StartDisp
; 1 Log
; 1 Gosub
; 1 Return
; 7 Inc
; 2 Newline
; 1 DCreate
; 1 DOpen
; 1 DGo
;
;
; ■ Functions used :
;
; 1 /
; 1 %
; 17 +
; 3 -
; 3 ==
; 2 <
; 1 <=
; 2 >=
; 8 !
; 2 &&
; 1 ||
; 1 Len(
; 1 Lower()
; 3 Space()
; 1 Trim()
; 7 String()
; 4 PPEPath()
; 1 Exist()
; 1 Mixed()
; 1 DDeleted()
; 2 DErr()
; 6 DName()
; 1 DRecCount()
; 6 DGet()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 1 For/Next
; 1 While/EndWhile
; 5 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------